<%@ include file="IsStudent.jsp"%>
<%@ page import="java.sql.*,database.*"%>
<%
// Execute query and save results.
try{
	int res = new DBCon(out).updateStudent(
				request.getParameter("fn"),
				request.getParameter("mn"),
				request.getParameter("ln"),
				request.getParameter("GPA"),
				request.getParameter("mp"),
				request.getParameter("email"),
				request.getParameter("login"),
				request.getParameter("pwd"),
				request.getParameter("aff"),
				request.getParameter("dpt"));
	if (res == 1)	
		response.sendRedirect("../Student/index.jsp");
}
catch(Exception e)
{
    response.sendRedirect("../connectionFailed.jsp?"+e);
}

		%>